package com.uzai.console.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.uzai.console.dto.fd.fdfollowgroup.FdFollowGroupQuery;
import com.uzai.console.entity.FdFollowGroup;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FdFollowGroupMapper {

    int deleteById(@Param("id") Long id);

    int insert(FdFollowGroup record);

    int insertSelective(FdFollowGroup record);

    FdFollowGroup selectById(@Param("id") Long id);

    FdFollowGroup selectByWxid(@Param("wxid") String wxid);

    int updateByIdSelective(FdFollowGroup record);

    int updateById(FdFollowGroup record);

    List<FdFollowGroup> findByLit(Page<FdFollowGroup> page, @Param("query") FdFollowGroupQuery query);
    
    /**
     * 查询所有
     * @param query
     * @return
     */
    List<FdFollowGroup> findByLit(@Param("query") FdFollowGroupQuery query);

}